import os

from ament_index_python.packages import get_package_share_directory

from launch import LaunchDescription
from launch_ros.actions import Node


def generate_launch_description():
 
   system_config = os.path.join(
      os.getcwd(),
      'config',
      'common',
      'system.yaml'
      )
   local_param_config = os.path.join(
      os.getcwd(),
      'config',
      'cfg',
      'local_paramter.yaml'
      )

   log_level = 'info'

   return LaunchDescription([
      Node(
         package='ubt_mqtt',
         executable='ubt_mqtt_node',
         name='ubt_mqtt',
         parameters=[system_config,local_param_config],
         ros_arguments=['--log-level', log_level],
         output = "screen"
      )
   ])